<?php
/* @var $this SecondaryStairOrFireEscapeController */
/* @var $model SecondaryStairOrFireEscape */

$this->breadcrumbs=array(
	'Secondary Stair Or Fire Escapes'=>array('index'),
	'Manage',
);

$this->menu=array(
	array('label'=>'List SecondaryStairOrFireEscape', 'url'=>array('index')),
	array('label'=>'Create SecondaryStairOrFireEscape', 'url'=>array('create')),
);

Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$('#secondary-stair-or-fire-escape-grid').yiiGridView('update', {
		data: $(this).serialize()
	});
	return false;
});
");
?>

<h1>Manage Secondary Stair Or Fire Escapes</h1>

<p>
You may optionally enter a comparison operator (<b>&lt;</b>, <b>&lt;=</b>, <b>&gt;</b>, <b>&gt;=</b>, <b>&lt;&gt;</b>
or <b>=</b>) at the beginning of each of your search values to specify how the comparison should be done.
</p>

<?php echo CHtml::link('Advanced Search','#',array('class'=>'search-button')); ?>
<div class="search-form" style="display:none">
<?php $this->renderPartial('_search',array(
	'model'=>$model,
)); ?>
</div><!-- search-form -->

<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'secondary-stair-or-fire-escape-grid',
	'dataProvider'=>$model->search(),
	'filter'=>$model,
	'columns'=>array(
		'id',
		'number',
		'width',
		'units_of_measurement_of_the_width',
		'stair_construction',
		'railing_provided',
		/*
		'rp_made_of',
		'location',
		'exit_accesible',
		'any_obstruction',
		'termination_or_discharge_of_exit',
		'exit_enclosure_provided',
		'enclosure_construction',
		'any_opening',
		'opening_protected',
		'fire_door_provided',
		'fdp_width',
		'units_of_measurement_of_fdp_width',
		'fire_door_construction',
		'door_provided_with_vision_panel',
		'if_yes_made_of',
		'door_equipped_with_self_closing_device',
		'door_and_enclosure_proper_rating',
		'door_open_easily',
		'self_closing_device_operable',
		'door_equipped_with_panic_hardware',
		'operable',
		'door_swing_in_the_direction_of_exit_travel',
		'enclosure_properly_protected',
		'fire_escape_pressurized',
		'pressurized_type_of_method',
		'date_last_tested',
		'investigation_establishment_id',
		'investigation_general_information_id',
		'exit_detail_id',
		*/
		array(
			'class'=>'CButtonColumn',
		),
	),
)); ?>
